<%@ page isELIgnored="false" %>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="auction" uri="http://www.shengruan.com/taglib"%>
<%@ taglib uri="http://www.shengruan.org/tags" prefix ="f"%> 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<link href="../style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<c:url value='/admin/assets/js/jquery/jquery.js'/>"></script>
<script type="text/javascript" language="javascript">
// <![CDATA[
$(document).ready(function() {
<c:if test="${not empty requestScope.message}">
$("#infoSpan").html("<img src='<c:url value='/admin/assets/images/flag.gif'/>'><font color='#C00000'><c:out value='${requestScope.message}' escapeXml='false'/></font>");
</c:if>

});
// ]]>
</script>
</head>
<body class="main">
<table class="container" cellpadding="0" cellspacing="0">

<tr class="dark" valign="middle">
<td>
<table width="100%" border="0">
<tr class="dark" valign="middle">
<td colspan="2"><input class="button" type="button" value="返回" onClick="document.location='/admin/product/product-list.ac?status=${requestScope.status}'">
</td>
</tr>
  <tr>
    <td>
    
    </td>
    <td>
    
    </td>
  </tr>
  
<c:if test="${not empty requestScope.message}">
<tr class="dark" valign="middle">
<td align="center"><span id="infoSpan" class="infoSpan">&nbsp;</span></td>
</tr>
</c:if>
</table>
</td>
</tr>
<tr>
<td colspan="2"><table class="list" align="center" cellspacing="1" cellpadding="0">
<tr class="heading">
<td width=34%>商品名称</td>
<td width=12%>第几轮</td>
<td width=15%>金额</td>
<td width=16%>用户名</td>
<td width=23%>时间</td>
</tr>
<c:forEach var="auctionHistory" items="${requestScope.auctionHistoryList}" varStatus="loop">
<tr <c:if test='${loop.count%2==0}'>class="odd"</c:if>>
  <td title="<c:out value='${auctionHistory.productName}'/>"><c:out value='${fn:substring(auctionHistory.productName,"0","45")}'/>......</td>
  <td height="20"><c:out value='${auctionHistory.bidRound}'/></td>
  <td height="20"><fmt:formatNumber value="${auctionHistory.bidPrice}" type="currency" pattern="￥.00"/></td>
  <td height="20"><c:out value='${auctionHistory.userName}'/></td>
  <td height="20"><c:out value='${f:format(auctionHistory.time)}'/></td>
</tr>
</c:forEach>
<tr ><td colspan="7" height="40"><div align="right"><shengruan:pager pager="${requestScope.pager}" url="/admin/product/auction-history-list.ac?productId=${requestScope.productId}&status=${requestScope.status}" isSubmit="false" /></div></td></tr>
</table>
</td>
</tr>
</table>
</body>
</html>
